"""
侧边栏导航组件
"""
import streamlit as st


def show_navigation():
    """
    显示侧边栏导航
    """
    with st.sidebar:
        st.title("智能测算系统")
        
        # 导航菜单
        st.subheader("测算流程")
        selected = st.radio(
            "",
            options=[
                "首页",
                "场景管理",
                "参数设置",
                "数据导入",
                "数据准备",
                "执行测算",
                "结果查看"
            ],
            key="navigation"
        )
        
        # 系统信息
        st.divider()
        st.subheader("系统信息")
        st.write("当前场景: " + (st.session_state.current_scene.name if "current_scene" in st.session_state else "未选择"))
        
        # 操作按钮
        st.divider()
        if st.button("重置系统"):
            st.session_state.clear()
            st.rerun()